home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / AIIGSIncludes / E16.GSOS < prev    next >
Encoding:
Text File  |  1992-03-04  |  6.6 KB  |  145 lines  |  [TEXT/MPS ]

  1. ; File:  E16.GSOS
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-90
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. readEnableAllowWrite EQU $0000
  9. readEnable EQU $0001
  10. writeEnable EQU $0002
  11. readWriteEnable EQU $0003
  12. fileInvisible EQU $0004  ; Invisible bit
  13. backupNeeded EQU $0020  ; backup needed bit: CreateRec/ OpenRec access  field. (Must be 0 in requestAccess field )
  14. renameEnable EQU $0040  ; rename enable bit: CreateRec/ OpenRec access and requestAccess fields
  15. destroyEnable EQU $0080  ; destroy enable  bit: CreateRec/ OpenRec access and requestAccess fields
  16. startPlus EQU $0000  ; base -> setMark = displacement
  17. eofMinus EQU $0001  ; base -> setMark = eof - displacement
  18. markPlus EQU $0002  ; base -> setMark = mark + displacement
  19. markMinus EQU $0003  ; base -> setMark = mark - displacement
  20. cacheOff EQU $0000  ; do not cache blocks invloved in this read
  21. cacheOn EQU $0001  ; cache blocks invloved in this read if possible
  22. badSystemCall EQU $0001  ; bad system call number
  23. invalidPcount EQU $0004  ; invalid parameter count
  24. gsosActive EQU $0007  ; GS/OS already active
  25.     IF &FINDSYM(&SYSGLOBAL,'DEVNOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'devnotfound')=0 THEN  ; device not found
  26. devNotFound EQU $10
  27.     ENDIF
  28. invalidDevNum EQU $11  ; invalid device number
  29. drvrBadReq EQU $20  ; bad request or command
  30. drvrBadCode EQU $0021  ; bad control or status code
  31. drvrBadParm EQU $0022  ; bad call parameter
  32. drvrNotOpen EQU $0023  ; character device not open
  33. drvrPriorOpen EQU $0024  ; character device already open
  34. irqTableFull EQU $0025  ; interrupt table full
  35. drvrNoResrc EQU $0026  ; resources not available
  36. drvrIOError EQU $0027  ; I/O error
  37. drvrNoDevice EQU $0028  ; device not connected
  38. drvrBusy EQU $0029  ; call aborted; driver is busy
  39. drvrWrtProt EQU $002B  ; device is write protected
  40. drvrBadCount EQU $002C  ; invalid byte count
  41. drvrBadBlock EQU $002D  ; invalid block address
  42. drvrDiskSwitch EQU $002E  ; disk has been switched
  43. drvrOffLine EQU $002F  ; device off line/ no media present
  44. badPathSyntax EQU $0040  ; invalid pathname syntax
  45. tooManyFilesOpen equ $0042 ; too many files open on server volume
  46. invalidRefNum EQU $0043  ; invalid reference number
  47.     IF &FINDSYM(&SYSGLOBAL,'PATHNOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'pathnotfound')=0 THEN  ; subdirectory does not exist
  48. pathNotFound EQU $44
  49.     ENDIF
  50. volNotFound EQU $0045  ; volume not found
  51.     IF &FINDSYM(&SYSGLOBAL,'FILENOTFOUND')=0 AND &FINDSYM(&SYSGLOBAL,'filenotfound')=0 THEN  ; file not found
  52. fileNotFound EQU $0046
  53.     ENDIF
  54. dupPathname EQU $0047  ; create or rename with existing name
  55. volumeFull EQU $0048  ; volume full error
  56. volDirFull EQU $0049  ; volume directory full
  57. badFileFormat EQU $004A  ; version error (incompatible file format)
  58.     IF &FINDSYM(&SYSGLOBAL,'BADSTORETYPE')=0 AND &FINDSYM(&SYSGLOBAL,'badstoretype')=0 THEN  ; unsupported (or incorrect) storage type
  59. badStoreType EQU $004B
  60.     ENDIF
  61.     IF &FINDSYM(&SYSGLOBAL,'EOFENCOUNTERED')=0 AND &FINDSYM(&SYSGLOBAL,'eofencountered')=0 THEN  ; end-of-file encountered
  62. eofEncountered EQU $004C
  63.     ENDIF
  64. outOfRange EQU $004D  ; position out of range
  65. invalidAccess EQU $004E  ; access not allowed
  66. buffTooSmall EQU $004F  ; buffer too small
  67. fileBusy EQU $0050  ; file is already open
  68. dirError EQU $0051  ; directory error
  69. unknownVol EQU $0052  ; unknown volume type
  70.     IF &FINDSYM(&SYSGLOBAL,'PARAMRANGEERR')=0 AND &FINDSYM(&SYSGLOBAL,'paramrangeerr')=0 THEN  ; parameter out of range
  71. paramRangeErr EQU $0053
  72.     ENDIF
  73. outOfMem EQU $0054  ; out of memory
  74. dupVolume EQU $0057  ; duplicate volume name
  75. notBlockDev EQU $0058  ; not a block device
  76.     IF &FINDSYM(&SYSGLOBAL,'INVALIDLEVEL')=0 AND &FINDSYM(&SYSGLOBAL,'invalidlevel')=0 THEN  ; specifield level outside legal range
  77. invalidLevel EQU $0059
  78.     ENDIF
  79. damagedBitMap EQU $005A  ; block number too large
  80. badPathNames EQU $005B  ; invalid pathnames for ChangePath
  81. notSystemFile EQU $005C  ; not an executable file
  82. osUnsupported EQU $005D  ; Operating System not supported
  83.     IF &FINDSYM(&SYSGLOBAL,'STACKOVERFLOW')=0 AND &FINDSYM(&SYSGLOBAL,'stackoverflow')=0 THEN  ; too many applications on stack
  84. stackOverflow EQU $005F
  85.     ENDIF
  86. dataUnavail EQU $0060  ; Data unavailable
  87. endOfDir EQU $0061  ; end of directory has been reached
  88. invalidClass EQU $0062  ; invalid FST call class
  89. resForkNotFound EQU $0063  ; file does not contain required resource
  90. invalidFSTID EQU $0064  ; error - FST ID is invalid
  91. invalidFSTop equ $0065 ;invalid FST operation
  92. fstCaution equ $0066 ;FST handled call, but result is wierd
  93. devNameErr EQU $0067  ; device exists with same name as replacement name
  94. devListFull equ $0068 ; device list full
  95. supListFull equ $0069 ; supervisor list full
  96. fstError equ $006a ; generic FST error
  97. resExistsErr EQU $0070  ; cannot expand file, resource already exists
  98. resAddErr EQU $0071  ; cannot add resource fork to this type file
  99. networkError equ $0088 ; generic network error
  100. proDOSFSID EQU $0001  ; ProDOS/SOS 
  101. dos33FSID EQU $0002  ; DOS 3.3
  102. dos32FSID EQU $0003  ; DOS 3.2
  103. dos31FSID EQU $0003  ; DOS 3.1
  104. appleIIPascalFSID EQU $0004  ; Apple II Pascal
  105. mfsFSID EQU $0005  ; Macintosh (flat file system)
  106. hfsFSID EQU $0006  ; Macintosh (hierarchical file system)
  107. lisaFSID EQU $0007  ; Lisa file system
  108. appleCPMFSID EQU $0008  ; Apple CP/M
  109. charFSTFSID EQU $0009  ; Character FST
  110. msDOSFSID EQU $000A  ; MS/DOS
  111. highSierraFSID EQU $000B  ; High Sierra
  112. iso9660FSID EQU $000C  ; ISO 9660
  113. appleShareFSID EQU $000D  ; ISO 9660
  114. characterFST EQU $4000  ; character FST
  115. ucFST EQU $8000  ; SCM should upper case pathnames before passing them to the FST
  116. onStack EQU $8000  ; place state information about quitting program on the quit return stack
  117. restartable EQU $4000  ; the quitting program is capable of being restarted from its dormant memory
  118. seedling EQU $0001  ; standard file with seedling structure
  119. standardFile EQU $0001  ; standard file type (no resource fork)
  120. sapling EQU $0002  ; standard file with sapling structure
  121. tree EQU $0003  ; standard file with tree structure
  122. pascalRegion EQU $0004  ; UCSD Pascal region on a partitioned disk
  123. extendedFile EQU $0005  ; extended file type (with resource fork)
  124. directoryFile EQU $000D  ; volume directory or subdirectory file
  125. minorRelNumMask EQU $00FF  ; minor release number
  126. majorRelNumMask EQU $7F00  ; major release number
  127. finalRelNumMask EQU $8000  ; final release number
  128. isFileExtended EQU $8000  ; GetDirEntryGS
  129. resetDevice EQU $0000
  130. formatDevice EQU $0001
  131. eject EQU $0002
  132. setConfigParameters EQU $0003
  133. setWaitStatus EQU $0004
  134. setFormatOptions EQU $0005
  135. assignPartitionOwner EQU $0006
  136. armSignal EQU $0007
  137. disarmSignal EQU $0008
  138. setPartitionMap EQU $0009
  139. PrefixRecGS RECORD 0 ; GSOS
  140. pCount  DS.B 2 ; Word - 
  141. prefixNum  DS.B 2 ; Word - 
  142. prefix  DS.B 4 ; ResultBuf255Ptr or GSString255Ptr - 
  143.   ENDR
  144.  
  145.